import 'package:chat_app_project/generated/json/base/json_convert_content.dart';
import 'package:chat_app_project/models/followers_entity.dart';

FollowersEntity $FollowersEntityFromJson(Map<String, dynamic> json) {
	final FollowersEntity followersEntity = FollowersEntity();
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		followersEntity.id = id;
	}
	final int? fanId = jsonConvert.convert<int>(json['fanId']);
	if (fanId != null) {
		followersEntity.fanId = fanId;
	}
	final int? followerId = jsonConvert.convert<int>(json['followerId']);
	if (followerId != null) {
		followersEntity.followerId = followerId;
	}
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		followersEntity.createTime = createTime;
	}
	final String? avatar = jsonConvert.convert<String>(json['avatar']);
	if (avatar != null) {
		followersEntity.avatar = avatar;
	}
	final String? nickName = jsonConvert.convert<String>(json['nickName']);
	if (nickName != null) {
		followersEntity.nickName = nickName;
	}
	final int? followStatus = jsonConvert.convert<int>(json['followStatus']);
	if (followStatus != null) {
		followersEntity.followStatus = followStatus;
	}
	return followersEntity;
}

Map<String, dynamic> $FollowersEntityToJson(FollowersEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['fanId'] = entity.fanId;
	data['followerId'] = entity.followerId;
	data['createTime'] = entity.createTime;
	data['avatar'] = entity.avatar;
	data['nickName'] = entity.nickName;
	data['followStatus'] = entity.followStatus;
	return data;
}
